package com.model;

import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToMany;

@Entity
public class WxFunctions {
	
	private Integer id;
	private Integer usenum;
	private String name;
	private String funname;
	private String info;
	private String isserve;
	private String status;
	
	private Set<WxUserGroup> userGroups;
	
	@ManyToMany(cascade={CascadeType.PERSIST,CascadeType.MERGE},fetch=FetchType.LAZY)
	public Set<WxUserGroup> getUserGroups() {
		return userGroups;
	}
	public void setUserGroups(Set<WxUserGroup> userGroups) {
		this.userGroups = userGroups;
	}
	
	@Id
	@GeneratedValue
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getUsenum() {
		return usenum;
	}
	public void setUsenum(Integer usenum) {
		this.usenum = usenum;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getFunname() {
		return funname;
	}
	public void setFunname(String funname) {
		this.funname = funname;
	}
	public String getInfo() {
		return info;
	}
	public void setInfo(String info) {
		this.info = info;
	}
	public String getIsserve() {
		return isserve;
	}
	public void setIsserve(String isserve) {
		this.isserve = isserve;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	
}
